package com.ruoyi.suggestion.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 建议投票对象 community_vote
 * 
 * @author xianyu
 * @date 2025-04-03
 */
public class CommunityVote extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long suggestionId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 1=支持，-1=反对 */
    @Excel(name = "1=支持，-1=反对")
    private Long voteType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSuggestionId(Long suggestionId) 
    {
        this.suggestionId = suggestionId;
    }

    public Long getSuggestionId() 
    {
        return suggestionId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setVoteType(Long voteType) 
    {
        this.voteType = voteType;
    }

    public Long getVoteType() 
    {
        return voteType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("suggestionId", getSuggestionId())
            .append("userId", getUserId())
            .append("voteType", getVoteType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
